package com.ls.fw.data.search.impl.dao.test.model;

import javax.persistence.Entity;

import com.mysema.query.annotations.QueryEntity;

/**
 * @author 李昇
 * 2014年4月13日 下午4:16:28
 */
@Entity
@QueryEntity
public class UserInfo {

	private Long id;
	private String name;
	private String password;
	private Person person;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Person getPerson() {
		return person;
	}
	public void setPerson(Person person) {
		this.person = person;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("UserInfo [");
		if (id != null) {
			builder.append("id=");
			builder.append(id);
			builder.append(", ");
		}
		if (name != null) {
			builder.append("name=");
			builder.append(name);
			builder.append(", ");
		}
		if (password != null) {
			builder.append("password=");
			builder.append(password);
			builder.append(", ");
		}
		if (person != null) {
			builder.append("person=");
			builder.append(person);
		}
		builder.append("]");
		return builder.toString();
	}
}
